package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.OrderChannelViphallMapper;
import com.ktgj.service.domain.OrderChannelViphall;
import com.ktgj.service.service.IOrderChannelViphallService;

/**
 * 鲸图厅设备验证进厅记录
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class OrderChannelViphallServiceImpl implements IOrderChannelViphallService 
{
    @Autowired
    private OrderChannelViphallMapper orderChannelViphallMapper;

    /**
     * 查询鲸图厅设备验证进厅记录

     * 
     * @param orderId 鲸图厅设备验证进厅记录
ID
     * @return 鲸图厅设备验证进厅记录

     */
    @Override
    public OrderChannelViphall selectOrderChannelViphallById(Long orderId)
    {
        return orderChannelViphallMapper.selectOrderChannelViphallById(orderId);
    }

    /**
     * 查询鲸图厅设备验证进厅记录
列表
     * 
     * @param orderChannelViphall 鲸图厅设备验证进厅记录

     * @return 鲸图厅设备验证进厅记录

     */
    @Override
    public List<OrderChannelViphall> selectOrderChannelViphallList(OrderChannelViphall orderChannelViphall)
    {
        return orderChannelViphallMapper.selectOrderChannelViphallList(orderChannelViphall);
    }

    /**
     * 新增鲸图厅设备验证进厅记录

     * 
     * @param orderChannelViphall 鲸图厅设备验证进厅记录

     * @return 结果
     */
    @Override
    public int insertOrderChannelViphall(OrderChannelViphall orderChannelViphall)
    {
        orderChannelViphall.setCreateTime(DateUtils.getNowDate());
        return orderChannelViphallMapper.insertOrderChannelViphall(orderChannelViphall);
    }

    /**
     * 修改鲸图厅设备验证进厅记录

     * 
     * @param orderChannelViphall 鲸图厅设备验证进厅记录

     * @return 结果
     */
    @Override
    public int updateOrderChannelViphall(OrderChannelViphall orderChannelViphall)
    {
        orderChannelViphall.setUpdateTime(DateUtils.getNowDate());
        return orderChannelViphallMapper.updateOrderChannelViphall(orderChannelViphall);
    }

    /**
     * 批量删除鲸图厅设备验证进厅记录

     * 
     * @param orderIds 需要删除的鲸图厅设备验证进厅记录
ID
     * @return 结果
     */
    @Override
    public int deleteOrderChannelViphallByIds(Long[] orderIds)
    {
        return orderChannelViphallMapper.deleteOrderChannelViphallByIds(orderIds);
    }

    /**
     * 删除鲸图厅设备验证进厅记录
信息
     * 
     * @param orderId 鲸图厅设备验证进厅记录
ID
     * @return 结果
     */
    @Override
    public int deleteOrderChannelViphallById(Long orderId)
    {
        return orderChannelViphallMapper.deleteOrderChannelViphallById(orderId);
    }
}
